lib: Add padding booleans to OstreeRepoCheckoutAtOptions
authorColin Walters <walters@verbum.org>
Thu, 4 Aug 2016 11:22:41 +0000 (07:22 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 4 Aug 2016 12:18:28 +0000 (12:18 +0000)
Since this is a new API, and adding booleans is the most likely thing
we'll do, let's stick some explicit padding for them in here now.

We could use the `unused_ints[]` but it'd be out of order, and this
will more clearly remind people about the padding.  The efficiency hit
versus bitfields is annoying, but oh well, not a real world problem.

Closes: #427
Approved by: giuseppe

src/libostree/ostree-repo.h

index f1ba22f18fff5650ff4dc5cee7687d3f14b73663..ff1e712d197537702f019828ef902114eb045aec 100644 (file)
@@ -752,6 +752,7 @@ typedef struct {
   gboolean enable_fsync;  /* Deprecated */
   gboolean process_whiteouts;
   gboolean no_copy_fallback;
+  gboolean unused_bools[7];
 
   const char *subpath;